package com.woke.wxpay;

import java.io.ByteArrayInputStream;
import java.io.InputStream;

import com.github.wxpay.sdk.WXPayConfig;

public class MyConfig implements WXPayConfig{
	private byte[] certData;

	@Override
	public String getAppID() {
		return "wx79d5218e366a53bf";
	}
	
	public String getAppSecret()
	{
		return "4be296a7d38e3e2b7f3fc7de5ca7c517";
	}

	@Override
	public InputStream getCertStream() {
		ByteArrayInputStream certBis = new ByteArrayInputStream(this.certData);
        return certBis;
	}

	@Override
	public int getHttpConnectTimeoutMs() {
		return 8000;
	}

	@Override
	public int getHttpReadTimeoutMs() {
		return 10000;
	}

	@Override
	public String getKey() {
		return "4be296a7d38e3e2b7f3fc7de5ca7c599";
	}

	@Override
	public String getMchID() {
		return "1509537681";
	}

}
